import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  mode:'hash',
  routes: [
    {
      path: '/',
      name: 'index',
      component: ()=>import('../pages/index')
    },
    {
      path: '/about',
      name: 'about',
      component: ()=>import('../pages/about')
    },
    {
      path:'/detail/:id',
      name:'detail',
      component:()=>import('../pages/detail')
    },
    {
      path:'/music',
      name:'music',
      component:()=>import('../pages/music')
    },
    {
      path:'/artist/:id',
      name:'artist',
      component:()=>import('../pages/artist')
    },
    {
      path:'/editor',
      name:'editor',
      component:()=>import('../pages/editor')
    },
  ]
})
